<?php if (count($list) > 0) { ?>
	<table border="0" style="width:100%;" cellpadding="0" cellspacing="0">
		<colgroup>
			<col width="50px" />
			<col width="30px" />
			<col width="30px" />
			<col />
		</colgroup>
		<tr>
			<td class="grid_header"><?php echo __('Id'); ?></td>
			<td class="grid_header" colspan="2">&nbsp;</td>
			<td class="grid_header"><?php echo __('Name'); ?></td>
		</tr>
		<?php $cnt = 0;
		foreach ($list as $category) {
			$style = '';
			if (intval($info['id']) == intval($category['id'])) {
				$style = 'background:#ccffcc;';
				//$style = 'background:#ffdddd;';
			} ?>
			<tr>
				<td class="grid_cell" style="<?php echo $style; ?>"><?php echo $category['id']; ?></td>
				<td class="grid_cell" style="<?php echo $style; ?>">
				<?php if ($cnt > 0) { ?>
					<a href="<?php echo BASE_URL; ?>category/sequence/<?php echo $category['id']; ?>/1" class="grid_link">
						<img src="<?php echo PUBLIC_URL; ?>images/sequence_up.png" style="display:block; border:none;" alt="<?php echo __('Up'); ?>" title="<?php echo __('Up'); ?>" />
					</a>
				<?php } else { ?>
					&nbsp;
				<?php } ?>
				</td>
				<td class="grid_cell" style="<?php echo $style; ?>">
				<?php if ((count($list) - 1) > $cnt) { ?>
					<a href="<?php echo BASE_URL; ?>category/sequence/<?php echo $category['id']; ?>/2" class="grid_link">
						<img src="<?php echo PUBLIC_URL; ?>images/sequence_down.png" style="display:block; border:none;" alt="<?php echo __('Down'); ?>" title="<?php echo __('Down'); ?>" />
					</a>
				<?php } else { ?>
					&nbsp;
				<?php } ?>
				</td>
				<td class="grid_cell" style="<?php echo $style; ?>">
					<a href="<?php echo BASE_URL; ?>category/update/<?php echo $category['id']; ?>" class="grid_link">
						<?php echo $category['name']; ?>
					</a>
				</td>
			</tr>
			<?php
			$cnt++;
		} ?>
	</table>
<?php } else {
	echo __('No categories found');
} ?>